﻿<Window x:Class="Historia.Formulaires.frmListePersonnages"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Gérer les personnages" Height="300" Width="777" Icon="/Historia;component/Images/person-icon.png">
    <DockPanel LastChildFill="True">
        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"></ColumnDefinition>
                <ColumnDefinition Width="auto"></ColumnDefinition>
                <ColumnDefinition Width="auto"></ColumnDefinition>
                <ColumnDefinition Width="75*"></ColumnDefinition>
                
            </Grid.ColumnDefinitions>
            <Button Name="btnAjouter" Grid.Column="0" MinWidth="75" Click="btnAjouter_Click">Ajouter</Button>
            <Button Name="btnModifier" Grid.Column="1" MinWidth="75" Margin="3,0,0,0" Click="btnModifier_Click">Modifier</Button>
            <Button Name="btnSupprimer" Grid.Column="2" MinWidth="75"  Margin="3,0,3,0" Click="btnSupprimer_Click">Supprimer</Button>
            <Button Name="btnFermer" Grid.Column="3" MinWidth="75" HorizontalAlignment="Right" Click="btnFermer_Click">Fermer</Button>
            
        </Grid>
        <ListView Name="lstPersonnages" ItemsSource="{Binding}" MouseDoubleClick="lstPersonnages_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Nom" Width="200" DisplayMemberBinding="{Binding nom}"></GridViewColumn>
                    <GridViewColumn Header="Abréviation" DisplayMemberBinding="{Binding abreviation}">
                    </GridViewColumn>
                    <GridViewColumn Header="Âge" Width="50" DisplayMemberBinding="{Binding age}"></GridViewColumn>
                    <GridViewColumn Header="Sexe" Width="100" DisplayMemberBinding="{Binding sexe}"></GridViewColumn>
                    <GridViewColumn Header="Rôle" Width="200" DisplayMemberBinding="{Binding role}"></GridViewColumn>
                    <GridViewColumn Header="Catégorie" Width="200" DisplayMemberBinding="{Binding categorie}"></GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
    </DockPanel>
</Window>
